package cn.dt70.dao.aqbReward;

import cn.dt70.pojo.AqbReward;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AqbRewardMapper {

//投资后得到奖励金
    int getReward(AqbReward aqbReward) throws Exception;
    //修改奖励金的状态
    int udpRewardStatus(Integer rewardId) throws Exception;

    //得到用户获得的已经激活的奖励金总数
    int couldUseReward(@Param("userId") Integer userId,
                       @Param("rewardType") Integer rewardType) throws Exception;

//    展示用户的奖励金流水
    List<AqbReward> rewardList(@Param("userId") Integer userId,
                               @Param("rewardType") Integer rewardType,
                               @Param("startDay") Integer startDay,
                               @Param("indexNo") Integer indexNo,
                               @Param("pageSize") Integer pageSize
                               ) throws Exception;
//    获得用户的奖励金条数
    int rewardCount(@Param("userId") Integer userId,
                    @Param("rewardType") Integer rewardType,
                    @Param("startDay") Integer startDay) throws Exception;

}
